import Layout from "@/layout";

export default [
	{
		path: '/user',
		component: Layout,
		name: '用户相关',
		meta: {title: '用户相关', icon: 'el-icon-s-help'},
		children: [{
			path: 'list',
			name: 'userList',
			component: () => import('@/views/user/userList'),
			meta: {title: '用户列表', icon: 'dashboard'}
		}]
	},
	
	{
		path: '/dict',
		component: Layout,
		name: '字典相关',
		meta: {title: '字典相关', icon: 'el-icon-s-help'},
		children: [{
			path: 'list',
			name: 'dictList',
			component: () => import('@/views/dict/dictList'),
			meta: {title: '系统字典', icon: 'dashboard'}
		}]
	},
	
	{
		path: '/permission',
		component: Layout,
		name: '权限管理',
		meta: {title: '权限管理', icon: 'el-icon-s-help'},
		children: [
			{
				path: 'roleList',
				name: 'roleList',
				component: () => import('@/views/permission/role/list'),
				meta: {title: '角色管理', icon: 'dashboard'}
			},
			{
				path: 'menuList',
				name: 'menuList',
				component: () => import('@/views/permission/menu/list'),
				meta: {title: '菜单管理', icon: 'dashboard'}
			},
			{
				path: 'interfaceList',
				name: 'interfaceList',
				component: () => import('@/views/permission/interface/list'),
				meta: {title: '接口权限', icon: 'dashboard'}
			},
		]
	},
	
	{
		path: '/log',
		component: Layout,
		name: '日志管理',
		meta: {title: '日志管理', icon: 'el-icon-s-help'},
		children: [
			{
				path: 'errorLogList',
				name: 'errorLogList',
				component: () => import('@/views/log/errorLog/list'),
				meta: {title: '错误日志', icon: 'dashboard'}
			},
			{
				path: 'interfaceLogList',
				name: 'interfaceLogList',
				component: () => import('@/views/log/interfaceLog/list'),
				meta: {title: '接口日志', icon: 'dashboard'}
			},
		]
	},
	
	{
		path: '/cloudStorage',
		component: Layout,
		name: '云盘管理',
		meta: {title: '云盘管理', icon: 'el-icon-s-help'},
		children: [
			{
				path: 'space',
				name: 'space',
				component: () => import('@/views/cloudStorage/space/list'),
				meta: {title: '空间管理', icon: 'dashboard'}
			},
			{
				path: 'overview',
				name: 'overview',
				component: () => import('@/views/cloudStorage/overview'),
				meta: {title: '磁盘概况', icon: 'dashboard'}
			},
		]
	},
]